<?php

    $material = $receipe['ReceipeMaterial'];
    $prepare  = $receipe['ReceipePrepare'];
    $receipe  = $receipe['Receipe'];
    
?>
<p><center><?= $this->Html->image('eurogel.png?w=150') ?></center></p>
<p><center><?= $this->Html->image('recepti/' . $receipe['image'])?></center></p>
<h1><?= $receipe['title'] ?></h1>
<h2>materijal</h2>
<ul>
    <? foreach ($material as $m): ?>
    <li>
        <? if ($m['product_id']): ?><strong><? endif ?>
        <?= $m['name']?>
        <? if ($m['product_id']): ?></strong><? endif ?>
        [<?= $m['amount'] ?>]
    </li>
    <? endforeach ?>
</ul>

<h2>priprema</h2>
<ol>
    <? foreach ($prepare as $p): ?>
    <li><?= $p['content']?></li>
    <? endforeach ?>
</ol>
